/*
车轴管理

*/
import httpRequest from '@/utils/httpRequest'

// 获取车辆列表
export function getList (data) {
  return httpRequest({
    url: '/truck/truck/list',
    method: 'get',
    params: data
  })
}
// 获取司机列表
export function getDriverList (params) {
  return httpRequest({
    url: '/truck/driver/list',
    method: 'get',
    params: params
  })
}
// 模糊匹配车主
export function getSearchlist (params) {
  return httpRequest({
    url: '/truck/ower/searchlist',
    method: 'get',
    params: params
  })
}
//常用司机
export function getDriverSearchlist (params) {
  return httpRequest({
    url: '/truck/driver/searchlist',
    method: 'get',
    params: params
  })
}
//车牌号是否重复
export function validate (params) {
  return httpRequest({
    url: '/truck/truck/validate',
    method: 'get',
    params: params
  })
}

// 无车牌流水号
export function getTurckNumber () {
  return httpRequest({
    url: '/truck/truck/getTurckNumber',
    method: 'get'
  })
}
export function queryPrelist () {
  return httpRequest({
    url: '/truck/prefix/querylist',
    method: 'get'
  })
}
// 模糊匹配司机
export function getSearchDriverlist (params) {
  return httpRequest({
    url: '/truck/driver/searchlist',
    method: 'get',
    params: params
  })
}
// 模糊匹配车牌
export function getSearchTrucklist (params) {
  return httpRequest({
    url: '/truck/truck/searchlist',
    method: 'get',
    params: params
  })
}
// 模糊匹配员工
export function getSearchUserlist (params) {
  return httpRequest({
    url: '/sys/user/searchlist',
    method: 'get',
    params: params
  })
}
